<?php

namespace App\Transformers;

use App\Models\ArticleContent;
use League\Fractal\TransformerAbstract;

class ArticleContentTransformer extends TransformerAbstract
{
    public function transform(ArticleContent $articleContent)
    {
        return [
            'article_id' => $articleContent->article_id,
            'content' => $articleContent->content,
            'created_at' => $articleContent->created_at->toDateTimeString(),
            'updated_at' => $articleContent->updated_at->toDateTimeString()
        ];
    }
}
